package kn.webstd.g4g.business;

import java.util.List;

import kn.webstd.g4g.commons.dts.BUDts;
import kn.webstd.g4g.commons.dts.PlanningDts;
import kn.webstd.g4g.commons.dts.StatusDts;
import kn.webstd.g4g.commons.dts.UsersDts;
import kn.webstd.tools.business.IService;
import kn.webstd.tools.business.security.IAuthorizationManager.PermitAll;

@PermitAll
public interface IPlanningService extends IService {
	public PlanningDts getPlanning(PlanningDts planning);
	public List<PlanningDts> getPlanningByUser(UsersDts user, StatusDts period);
	public List<PlanningDts> getPlanningByUserNotFinished(UsersDts user, StatusDts period);
	public List<PlanningDts> getPlanningByBU(BUDts bu, StatusDts period);
	public PlanningDts savePlanning(PlanningDts planning);
	public PlanningDts updatePlanning(PlanningDts planning);
	public PlanningDts terminatePlanningsByUser(UsersDts user);
	public List<PlanningDts> createNewPlanningsWithChangePeriod(StatusDts periodBefore);
}